<script type="text/javascript">
  $(document).ready(function() {
    var sUserAgent = navigator.userAgent.toLowerCase();
    var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
    var bIsIphoneOs = sUserAgent.match(/iphone/i) == "iphone";
    var bIsIpod = sUserAgent.match(/ipod/i) == "ipod";
    var other = sUserAgent.match(/ios/i) == "ios";
    var bIsWeixin = /micromessenger/gi.test(sUserAgent)
    var from_ap = <%= from_ap? %>;
    if(bIsIpad || bIsIphoneOs || bIsIpod || other){
      $("#android_download").hide();
      if(from_ap){
        $("#ios_wifi_download").show();
        $("#ios_standby_download").show();
        $("#fromap-download-tip").show();
      }else{
        $("#ios_download").show();
      }
    }

    if(from_ap){
      $("#weixin-download-tip").show();
      if(bIsWeixin){
        $('.tip-order').show();      
      }
    }

  });
</script>
<div class="phoneTop fLe">
  <img src="/assets/home/banner.png" />
</div>
<div class="phonedownload fLe clear">
  <ul>
    <li id="ios_download">
      <a href="<%= downloads_path(name: @ios.try(:name)) %>">
        <img src="/assets/home/ios.jpg" />
      </a>
    </li>
    <li id="ios_wifi_download">
      <a href="http://10.10.10.1:81/download_ios.asp">
        <img src="/assets/home/ios_wifi.png" />
      </a>
    </li>
    <li id="ios_standby_download" style="margin-top: 10px;">
      <a href="<%= downloads_path(name: @ios.try(:name)) %>">
        <img src="/assets/home/ios_standby.png" />
      </a>
    </li>
    <li id="android_download" style="display: list-item;">
      <a href="<%= downloads_path(name: @android.try(:name)) %>" target="_blank">
        <img src="/assets/home/Android.jpg"/>
      </a>
    </li>
  </ul>
  <div id="download-tip" class="clear phoneTxt" style="float: left; margin-top: 20px;">
    <p id="weixin-download-tip" style="display: none;">提示<span class="tip-order" style="display: none;">1</span>：<span style="color:red;">点击无法下载，请点击右上角，选择在浏览器中打开后下载</span></p>
    <% if from_ap? %>
    <p id="fromap-download-tip" style="display: none;">提示<span class="tip-order" style="display: none;">2</span>：<span style="color:red;">您若使用手机3G上网,请点击“3G网络下载”。</span></p>
    <% end %>
  </div>
</div>

<div class="phoneTxt fLe">
  <img src="/assets/home/btl_09.png"/>
  <p>流量就跟零用钱一样，总担心不够用，不能随时随地聊微信、刷微博。现在有了Y-BOX WiFi，想怎么玩就怎么玩。</p>
</div>

<div class="phoneTxt fLe">
  <img src="/assets/home/btl_12.png"/>
  <p>使用APP一键登录到Y-BOX热点，下次使用无需再重复登录。免费热点也这么好用，赶紧告诉给小伙伴们吧。</p>
</div>

<div class="phoneTxt fLe">
  <img src="/assets/home/btl_14.png"/>
  <p>有Y-BOX WiFi热点的地方，打开视网魔客户端，体育赛事什么的，再也不用担心落下了。</p>
</div>

<div class="phoneFooter fLe">
  <p>浙ICP备11055684号-2 &nbsp;&nbsp;copyright © 2013 &nbsp;&nbsp;www.cloudchain.cn</p>
</div>